import request from '@/utils/request_location'
const key = '1384c2854dd7fad97b20b9e115717e8f'
export default {
  addressToLocation(address) {
    //地址转为经纬度
    return request({
      url: `/v3/geocode/geo?key=${key}&address=${address}`,
      method: 'GET'
    })
  },
  locationToMap(location) {
    const markers = 'large,,我:' + location
    return request({
      url: `/v3/staticmap?location=${location}&size=375*150&markers=${markers}&key=${key}&zoom=17`,
      method: 'GET'
    })
  }
}
